home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20021006-20030409
/
000269_tom.horsley@att.net_Sun Feb 9 16:37:18 EST 2003.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
70 lines
Article: 14063 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
Sender: tom@SPIKE
Newsgroups: comp.protocols.kermit.misc
Subject: Re: input pattern matching blowing my mind...
References: <uisvwssje.fsf@att.net> <b213u0$i95$1@watsol.cc.columbia.edu>
From: tom.horsley@att.net (Thomas A. Horsley)
Message-ID: <u8ywrd5o8.fsf@att.net>
Lines: 49
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: c304182efaaddfe794c873897cc4b1fc
X-Complaints-To: abuse@worldnet.att.net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1044660999 c304182efaaddfe794c873897cc4b1fc (Fri, 07 Feb 2003 23:36:39 GMT)
NNTP-Posting-Date: Fri, 07 Feb 2003 23:36:39 GMT
Organization: AT&T Worldnet
Date: Fri, 07 Feb 2003 23:36:39 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14063
>It seems to happen only in \fpattern() arguments, and only when SET INPUT
>CASE is OFF.
Thanks! That works for me, but I have even more confusing results
now. Here is the script in its current form (which works):
output \13
input 10 {linux> }
if success {
output ssh-add\13
set input case observe
input 10 \Fpattern({Enter passphrase for*:?})
if success {
askq /GUI \%p \v(inmatch)
output \%p\13
}
while 1 {
minput 10 {try again: } {linux> }
if failure { break }
if = \v(minput) 2 { break }
askq /GUI \%p \v(inmatch)
output \%p\13
}
}
connect
If I try to move everything into the while loop:
output \13
input 10 {linux> }
if success {
output ssh-add\13
while 1 {
set input case observe
minput 10 {try again: } {linux> } \Fpattern({Enter passphrase for*:?})
if failure { break }
if = \v(minput) 2 { break }
askq /GUI \%p \v(inmatch)
output \%p\13
}
}
connect
It (once again) never matches the initial prompt. I can't even get
it to work in this case by leaving off the "E" :-).
--
>>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL |
<URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+